using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using static System.Net.Mime.MediaTypeNames;


public class textbt : MonoBehaviour
{
    // Start is called before the first frame update
    public static textbt instance;
    public string text{ get;private set; }

    private void Awake()
    {
        text = "123465";
        instance = this;
    }
    void Start()
    {
        GetComponent<Button>().onClick.AddListener(showme);
    }
    private void showme()
    {
        text +="1" ;
        //事件管理器.Broadcast<string>(EventType.textshowme,text);
        事件管理器.Broadcast(EventType.textshowme);
    }
}
